#include "utils.h"

Transform_3 GL2CGALMatrix(double glTransform[16]){
    //Converts a OpenGL transformation matrix (a column-major vector) in a CGAL transformation matrix (a row-major 4x4 matrix).

    Transform_3 transform(glTransform[0] , glTransform[4] , glTransform[8] , glTransform[12],
                            glTransform[1] , glTransform[5] , glTransform[9] , glTransform[13],
                            glTransform[2] , glTransform[6] , glTransform[10] , glTransform[14],
                                                                                glTransform[15]
                            );
    return transform;
}
